
<%
	// obtain the target url from the parameter
	String targetUrl = request.getParameter("targetUrl");
	if (targetUrl == null) {
		targetUrl = "";
	}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>


<%@ taglib prefix="stripes"
	uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Bidding Online System, Merlion University</title>
<link href="${pageContext.request.contextPath}/assets/css/bootstrap.css"
	rel="stylesheet" type="text/css" />
<link
	href="${pageContext.request.contextPath}/assets/css/bootstrap-theme.css"
	rel="stylesheet" type="text/css" />
<link
	href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css"
	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/assets/css/general.css"
	rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/assets/css/navbar.css"
	rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/assets/css/login.css"
	rel="stylesheet" type="text/css" />
</head>

<body>

	<div class="container">

		<div class="row">
			<div class="thumbnail">
				<img
					src="${pageContext.request.contextPath}/assets/images/logo-176-transparent.png"
					alt="Merlion University" />
			</div>
		</div>
		<div class="row">
			<stripes:form class="form-signin form-horizontal" method="post"
				beanclass="actionbean.LoginActionBean">
				<h2 style="text-align: center;">BIOS LOG IN</h2>

				<stripes:hidden name="targetUrl" value="<%=targetUrl%>"></stripes:hidden>

				<stripes:text name="userId" class="form-control input-lg"
					placeholder="Username" autofocus="autofocus" />
				<stripes:password name="password" class="form-control input-lg"
					placeholder="Password" />

				<stripes:errors field="userId" />
				<stripes:errors field="password" />

				<stripes:errors globalErrorsOnly="true" />
				<br />
				<stripes:submit name="authenticateUser"
					class="btn btn-lg btn-primary btn-block">Sign In</stripes:submit>
			</stripes:form>


		</div>
	</div>

	<!-- Bootstrap core JavaScript -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script
		src="${pageContext.request.contextPath}/assets/js/jquery.min.js"
		type="text/javascript"></script>
	<script
		src="${pageContext.request.contextPath}/assets/js/bootstrap.min.js"
		type="text/javascript"></script>
</body>
</html>
